package com.ygl.core.listener.register;

import com.ygl.core.listener.Listener;
import org.springframework.cloud.client.serviceregistry.Registration;

/**
 * author: yanggld
 * date: 2019/12/14 11:48
 * version: 1.0
 * description: RegisterListener
 */
public interface RegisterListener extends Listener {
    /**
     * 服务注册
     * @param registration
     */
    void onRegister(Registration registration);
    /**
     * 服务注销
     * @param registration
     */
    void onDeregister(Registration registration);
    /**
     * 服务状态
     * @param registration
     * @param status
     */
    void onSetStatus(Registration registration, String status);
}
